public class IncreaseDecrease {
    public static void main(String[] args) {
        int a = 1;
        System.out.println("a++=" + a++);//   "++" 在a的后面
        //相当于以下两语句
        //System.out.println("a++=" + a);
        //a += 1;//a = a +1
        System.out.println("a=" + a);

        a = 1;
        System.out.println("++a=" + (++a));
        System.out.println("a=" + a);

        int b = 10;
        System.out.println("b--=" + b--);
        //相当于以下两语句
        //System.out.println("b--=" + b);
        //b -= 1;
        System.out.println("b=" + b);

        b = 10;
        System.out.println("--b=" + --b);
        System.out.println("b=" + b);
    }
}